<?
//ajax process
	include("../db_connect.php"); 
connect();
				
				$username = mysql_real_escape_string($_POST['username']);
				$r = mysql_query("SELECT 1 FROM tb_membership WHERE username='$username'");
				echo mysql_num_rows($r)?'yes':'no';
				exit(0);
				
				
		
?>